package com.tl.khadmin.bean;

/**
 * @author lizb
 * @date 2021-08-09
 */
public class BuyerEntity {


    /// <summary>
    /// 付款帐号
    /// </summary>
    private String customerPayAccount;
   

    /// <summary>
    /// 买家Email
    /// </summary>
    private String customerEmail;
    /// <summary>
    /// 买家帐户
    /// </summary>
    private String customerShopAccount;

    /// <summary>
    /// 收件人
    /// </summary>
    private String customerReceiver;

    /// <summary>
    /// 收件人省
    /// </summary>
    private String customerReceiverProvince;

    /// <summary>
    /// 收件人市
    /// </summary>
    private String customerReceiverCity;

    /// <summary>
    /// 收件人区
    /// </summary>
    private String customerReceiverDistrict;

    /// <summary>
    /// 收件人地址
    /// </summary>
    private String customerReceiverAddress;

    /// <summary>
    /// 收件人电话
    /// </summary>
    private String customerReceiverPhone;

    /// <summary>
    /// 收件人手机
    /// </summary>
    private String customerReceiverMobile;

    /// <summary>
    /// 身份证号码
    /// </summary>
    private String idCard;

    /// <summary>
    ///全部地址（省+市+区+地址）
    /// </summary>
    private String customerAllAddress;
//    public String CustomerAllAddress
//    {
//        get
//        {
//            if (!String.IsNullOrEmpty(customerAllAddress))
//            {
//                return customerAllAddress;
//            }
//            return String.Format("{0}{1}{2}{3}", CustomerReceiverProvince, CustomerReceiverCity, CustomerReceiverDistrict, CustomerReceiverAddress);
//        }
//        set
//        {
//            customerAllAddress = value;
//        }
//    }

    /// <summary>
    /// 收件人邮编
    /// </summary>
    private String customerReceiverZipcode;

    /// <summary>
    /// 收件人国家
    /// </summary>
    private String customerReceiverCountry;

    public String getCustomerPayAccount() {
        return customerPayAccount;
    }

    public void setCustomerPayAccount(String customerPayAccount) {
        this.customerPayAccount = customerPayAccount;
    }

    public String getCustomerEmail() {
        return customerEmail;
    }

    public void setCustomerEmail(String customerEmail) {
        this.customerEmail = customerEmail;
    }

    public String getCustomerShopAccount() {
        return customerShopAccount;
    }

    public void setCustomerShopAccount(String customerShopAccount) {
        this.customerShopAccount = customerShopAccount;
    }

    public String getCustomerReceiver() {
        return customerReceiver;
    }

    public void setCustomerReceiver(String customerReceiver) {
        this.customerReceiver = customerReceiver;
    }

    public String getCustomerReceiverProvince() {
        return customerReceiverProvince;
    }

    public void setCustomerReceiverProvince(String customerReceiverProvince) {
        this.customerReceiverProvince = customerReceiverProvince;
    }

    public String getCustomerReceiverCity() {
        return customerReceiverCity;
    }

    public void setCustomerReceiverCity(String customerReceiverCity) {
        this.customerReceiverCity = customerReceiverCity;
    }

    public String getCustomerReceiverDistrict() {
        return customerReceiverDistrict;
    }

    public void setCustomerReceiverDistrict(String customerReceiverDistrict) {
        this.customerReceiverDistrict = customerReceiverDistrict;
    }

    public String getCustomerReceiverAddress() {
        return customerReceiverAddress;
    }

    public void setCustomerReceiverAddress(String customerReceiverAddress) {
        this.customerReceiverAddress = customerReceiverAddress;
    }

    public String getCustomerReceiverPhone() {
        return customerReceiverPhone;
    }

    public void setCustomerReceiverPhone(String customerReceiverPhone) {
        this.customerReceiverPhone = customerReceiverPhone;
    }

    public String getCustomerReceiverMobile() {
        return customerReceiverMobile;
    }

    public void setCustomerReceiverMobile(String customerReceiverMobile) {
        this.customerReceiverMobile = customerReceiverMobile;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getCustomerAllAddress() {
        //return customerAllAddress;
        if(customerAllAddress==null || customerAllAddress.isEmpty()){
            return  getCustomerReceiverProvince()+getCustomerReceiverCity()+getCustomerReceiverDistrict()+getCustomerReceiverAddress();
        }
        else {
            return  customerAllAddress;
        }
    }

    public void setCustomerAllAddress(String customerAllAddress) {
        this.customerAllAddress = customerAllAddress;
    }

    public String getCustomerReceiverZipcode() {
        return customerReceiverZipcode;
    }

    public void setCustomerReceiverZipcode(String customerReceiverZipcode) {
        this.customerReceiverZipcode = customerReceiverZipcode;
    }

    public String getCustomerReceiverCountry() {
        return customerReceiverCountry;
    }

    public void setCustomerReceiverCountry(String customerReceiverCountry) {
        this.customerReceiverCountry = customerReceiverCountry;
    }
}
